<html>
<body>
  <!-- The orange block should be centered horizontally thanks to the left/right auto margin. -->
  <div style="background-color: orange; position: absolute; margin: 0 auto; height: 20px; width: 50%; left: 0;right: 0;"></div>
</body>
</html>
